using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._3DIntersections
{
    /// <summary>
    /// <para>Intersect 3D</para>
    /// <para>Computes the intersection of multipatch features to produce closed multipatches  encompassing the overlapping volumes, open multipatch features from the common surface areas, or lines from the intersecting edges.</para>
    /// <para>计算多面体要素的交点，以生成包含重叠体积的闭合多面体、公共表面区域的开放多面体要素或相交边的线。</para>
    /// </summary>    
    [DisplayName("Intersect 3D")]
    public class Intersect3D : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Intersect3D()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_feature_class_1">
        /// <para>Input Multipatch Features</para>
        /// <para>The multipatch features that will be intersected. When only one input feature layer or feature class is provided, the output will indicate the intersection of its own features.</para>
        /// <para>将要相交的多面体要素。如果仅提供一个输入要素图层或要素类，则输出将指示其自身要素的交集。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will be produced.</para>
        /// <para>将生成的要素类。</para>
        /// </param>
        public Intersect3D(object _in_feature_class_1, object _out_feature_class)
        {
            this._in_feature_class_1 = _in_feature_class_1;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Intersect 3D";

        public override string CallName => "3d.Intersect3D";

        public override List<string> AcceptEnvironments => ["XYDomain", "ZDomain", "autoCommit", "configKeyword", "extent", "geographicTransformations", "outputCoordinateSystem", "workspace"];

        public override object[] ParameterInfo => [_in_feature_class_1, _out_feature_class, _in_feature_class_2, _output_geometry_type.GetGPValue()];

        /// <summary>
        /// <para>Input Multipatch Features</para>
        /// <para>The multipatch features that will be intersected. When only one input feature layer or feature class is provided, the output will indicate the intersection of its own features.</para>
        /// <para>将要相交的多面体要素。如果仅提供一个输入要素图层或要素类，则输出将指示其自身要素的交集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Multipatch Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_feature_class_1 { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will be produced.</para>
        /// <para>将生成的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Input Multipatch Features</para>
        /// <para>The optional second multipatch feature layer or feature class to be intersected with the first.</para>
        /// <para>要与第一个要素相交的可选第二个多面体要素图层或要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Multipatch Features")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _in_feature_class_2 { get; set; } = null;


        /// <summary>
        /// <para>Output Geometry Type</para>
        /// <para><xdoc>
        ///   <para>Determines the type of intersection geometry created.</para>
        ///   <bulletList>
        ///     <bullet_item>Solid—Creates a closed multipatch representing the overlapping volumes between input features. This is the default.</bullet_item><para/>
        ///     <bullet_item>Surface—Creates a multipatch surface representing shared faces between input features.</bullet_item><para/>
        ///     <bullet_item>Line— Creates lines representing shared edges between input features.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>确定创建的相交几何图形的类型。</para>
        ///   <bulletList>
        ///     <bullet_item>实心 （Solid） - 创建表示输入要素之间重叠体积的闭合多面体。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>曲面 （Surface） - 创建表示输入要素之间共享面的多面体曲面。</bullet_item><para/>
        ///     <bullet_item>线 - 创建表示输入要素之间共享边的线。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Geometry Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _output_geometry_type_value _output_geometry_type { get; set; } = _output_geometry_type_value._SOLID;

        public enum _output_geometry_type_value
        {
            /// <summary>
            /// <para>Solid</para>
            /// <para>Solid—Creates a closed multipatch representing the overlapping volumes between input features. This is the default.</para>
            /// <para>实心 （Solid） - 创建表示输入要素之间重叠体积的闭合多面体。这是默认设置。</para>
            /// </summary>
            [Description("Solid")]
            [GPEnumValue("SOLID")]
            _SOLID,

            /// <summary>
            /// <para>Surface</para>
            /// <para>Surface—Creates a multipatch surface representing shared faces between input features.</para>
            /// <para>曲面 （Surface） - 创建表示输入要素之间共享面的多面体曲面。</para>
            /// </summary>
            [Description("Surface")]
            [GPEnumValue("SURFACE")]
            _SURFACE,

            /// <summary>
            /// <para>Line</para>
            /// <para>Line— Creates lines representing shared edges between input features.</para>
            /// <para>线 - 创建表示输入要素之间共享边的线。</para>
            /// </summary>
            [Description("Line")]
            [GPEnumValue("LINE")]
            _LINE,

        }

        public Intersect3D SetEnv(object XYDomain = null, object ZDomain = null, int? autoCommit = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object workspace = null)
        {
            base.SetEnv(XYDomain: XYDomain, ZDomain: ZDomain, autoCommit: autoCommit, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, workspace: workspace);
            return this;
        }

    }

}